Integrand size = 17, antiderivative size = 239 \[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=-\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac {d \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right ) \sinh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{4 \sqrt {-a} b^{3/2}}+\frac {d \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right ) \sinh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{4 \sqrt {-a} b^{3/2}}-\frac {d \cosh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{4 \sqrt {-a} b^{3/2}}-\frac {d \cosh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{4 \sqrt {-a} b^{3/2}} \]
[Out]
Time = 0.27 (sec) , antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {5397, 5388, 3384, 3379, 3382} \[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=-\frac {d \sinh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Chi}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{4 \sqrt {-a} b^{3/2}}+\frac {d \sinh \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{4 \sqrt {-a} b^{3/2}}-\frac {d \cosh \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{4 \sqrt {-a} b^{3/2}}-\frac {d \cosh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{4 \sqrt {-a} b^{3/2}}-\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )} \]
[In]
[Out]
Rule 3379
Rule 3382
Rule 3384
Rule 5388
Rule 5397
Rubi steps \begin{align*} \text {integral}& = -\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )}+\frac {d \int \frac {\sinh (c+d x)}{a+b x^2} \, dx}{2 b} \\ & = -\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )}+\frac {d \int \left (\frac {\sqrt {-a} \sinh (c+d x)}{2 a \left (\sqrt {-a}-\sqrt {b} x\right )}+\frac {\sqrt {-a} \sinh (c+d x)}{2 a \left (\sqrt {-a}+\sqrt {b} x\right )}\right ) \, dx}{2 b} \\ & = -\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac {d \int \frac {\sinh (c+d x)}{\sqrt {-a}-\sqrt {b} x} \, dx}{4 \sqrt {-a} b}-\frac {d \int \frac {\sinh (c+d x)}{\sqrt {-a}+\sqrt {b} x} \, dx}{4 \sqrt {-a} b} \\ & = -\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac {\left (d \cosh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\sinh \left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{\sqrt {-a}+\sqrt {b} x} \, dx}{4 \sqrt {-a} b}+\frac {\left (d \cosh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\sinh \left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{\sqrt {-a}-\sqrt {b} x} \, dx}{4 \sqrt {-a} b}-\frac {\left (d \sinh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\cosh \left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{\sqrt {-a}+\sqrt {b} x} \, dx}{4 \sqrt {-a} b}-\frac {\left (d \sinh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\cosh \left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{\sqrt {-a}-\sqrt {b} x} \, dx}{4 \sqrt {-a} b} \\ & = -\frac {\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac {d \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right ) \sinh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{4 \sqrt {-a} b^{3/2}}+\frac {d \text {Chi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right ) \sinh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{4 \sqrt {-a} b^{3/2}}-\frac {d \cosh \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{4 \sqrt {-a} b^{3/2}}-\frac {d \cosh \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Shi}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{4 \sqrt {-a} b^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.82 (sec) , antiderivative size = 236, normalized size of antiderivative = 0.99 \[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=\frac {-\frac {4 \sqrt {b} \cosh (c) \cosh (d x)}{a+b x^2}-\frac {i d e^{c-\frac {i \sqrt {a} d}{\sqrt {b}}} \left (e^{\frac {2 i \sqrt {a} d}{\sqrt {b}}} \operatorname {ExpIntegralEi}\left (d \left (-\frac {i \sqrt {a}}{\sqrt {b}}+x\right )\right )-\operatorname {ExpIntegralEi}\left (d \left (\frac {i \sqrt {a}}{\sqrt {b}}+x\right )\right )\right )}{\sqrt {a}}-\frac {i d e^{-c-\frac {i \sqrt {a} d}{\sqrt {b}}} \left (e^{\frac {2 i \sqrt {a} d}{\sqrt {b}}} \operatorname {ExpIntegralEi}\left (-\frac {i \sqrt {a} d}{\sqrt {b}}-d x\right )-\operatorname {ExpIntegralEi}\left (\frac {i \sqrt {a} d}{\sqrt {b}}-d x\right )\right )}{\sqrt {a}}-\frac {4 \sqrt {b} \sinh (c) \sinh (d x)}{a+b x^2}}{8 b^{3/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(448\) vs. \(2(181)=362\).
Time = 0.23 (sec) , antiderivative size = 449, normalized size of antiderivative = 1.88
method | result | size |
risch | \(-\frac {{\mathrm e}^{\frac {d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (\frac {d \sqrt {-a b}-\left (d x +c \right ) b +c b}{b}\right ) b d \,x^{2}-{\mathrm e}^{\frac {-d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (-\frac {d \sqrt {-a b}+\left (d x +c \right ) b -c b}{b}\right ) b d \,x^{2}-{\mathrm e}^{-\frac {d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (-\frac {d \sqrt {-a b}-\left (d x +c \right ) b +c b}{b}\right ) b d \,x^{2}+{\mathrm e}^{-\frac {-d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (\frac {d \sqrt {-a b}+\left (d x +c \right ) b -c b}{b}\right ) b d \,x^{2}+{\mathrm e}^{\frac {d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (\frac {d \sqrt {-a b}-\left (d x +c \right ) b +c b}{b}\right ) a d -{\mathrm e}^{\frac {-d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (-\frac {d \sqrt {-a b}+\left (d x +c \right ) b -c b}{b}\right ) a d -{\mathrm e}^{-\frac {d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (-\frac {d \sqrt {-a b}-\left (d x +c \right ) b +c b}{b}\right ) a d +{\mathrm e}^{-\frac {-d \sqrt {-a b}+c b}{b}} \operatorname {Ei}_{1}\left (\frac {d \sqrt {-a b}+\left (d x +c \right ) b -c b}{b}\right ) a d +2 \sqrt {-a b}\, {\mathrm e}^{-d x -c}+2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{8 \left (b \,x^{2}+a \right ) b \sqrt {-a b}}\) | \(449\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 641 vs. \(2 (181) = 362\).
Time = 0.25 (sec) , antiderivative size = 641, normalized size of antiderivative = 2.68 \[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=-\frac {4 \, a \cosh \left (d x + c\right ) + {\left ({\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (d x - \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (-d x + \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \cosh \left (c + \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left ({\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (d x + \sqrt {-\frac {a d^{2}}{b}}\right ) - {\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (-d x - \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \cosh \left (-c + \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left ({\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (d x - \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (-d x + \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \sinh \left (c + \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left ({\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (d x + \sqrt {-\frac {a d^{2}}{b}}\right ) + {\left ({\left (b x^{2} + a\right )} \cosh \left (d x + c\right )^{2} - {\left (b x^{2} + a\right )} \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {a d^{2}}{b}} {\rm Ei}\left (-d x - \sqrt {-\frac {a d^{2}}{b}}\right )\right )} \sinh \left (-c + \sqrt {-\frac {a d^{2}}{b}}\right )}{8 \, {\left ({\left (a b^{2} x^{2} + a^{2} b\right )} \cosh \left (d x + c\right )^{2} - {\left (a b^{2} x^{2} + a^{2} b\right )} \sinh \left (d x + c\right )^{2}\right )}} \]
[In]
[Out]
\[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=\int \frac {x \cosh {\left (c + d x \right )}}{\left (a + b x^{2}\right )^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=\int { \frac {x \cosh \left (d x + c\right )}{{\left (b x^{2} + a\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=\int { \frac {x \cosh \left (d x + c\right )}{{\left (b x^{2} + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx=\int \frac {x\,\mathrm {cosh}\left (c+d\,x\right )}{{\left (b\,x^2+a\right )}^2} \,d x \]
[In]
[Out]